package test

import (
	"gorm.io/driver/mysql"
	"gorm.io/gorm"
)

// 连接数据库
func Sql() *gorm.DB {
	dsn := "oldhft111:6eYXTfYxG3RBb4mC@tcp(175.178.172.97:3306)/oldhft111?charset=utf8mb4&parseTime=True&loc=Local"
	db, _ := gorm.Open(mysql.Open(dsn), &gorm.Config{})
	return db
}
